<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>四则运算-加减乘除，求余</h1>
</body>
<script type="text/javascript">

    var number1 = 10;
    var number2 = 3;

    var rs;
    var ys;


    rs = number1 / number2;
    rs = parseInt(rs);

    ys = number1 % number2; // 代表是求余，一般也叫做 取模


    alert(rs); // 3.333 商：3 余 1  ； 3 * 3 + 1 = 10
    alert(number1 - rs * 3);
    alert(ys);


</script>

</html>
